import { IFeidaoAiNodejsComponent } from '@feidao-factory/atom-nodejs/interfaces';
import nodejs from '@feidao-factory/atom-nodejs/msg/nodejs';
import render from '@feidao-factory/atom-nodejs/render/render';
import p001 from './p001';

export default async function na001(fd: IFeidaoAiNodejsComponent, ...args: any[]) {
	const doccode = fd.data.params.doccode;
	const res = await nodejs<{ data: [] }>(fd.data.actionid, fd.data.sessionid, fd.data.spaceid, 'web/app-order-det', { doccode });
	await render(fd.data.node, res, p001, 'p001');
}
